<?php

/*
*###########################################################################################################################*
#															    															#
#															    															#
#    **  ** ****** ** **  **  ****** ** ***   ** ***   ****** ** **  **  ** **  ** ** **  **    ****   ** **  **  ******    #
#    **  ** ****** ********** ****** *******  *******  ****** ********** ** **  ** **********  ******  ********** ******    #
#    **  ** **  ** **  **  ** **     ***   ** **    ** **     **  **  **    **  ** **  **  ** ***   ** **  **  ** **        #
#    ****** **  ** **  **  ** ****** **   *** **   *** ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    ****** **  ** **  **  ** ****** *******  *******  ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    **  ** **  ** **  **  ** **     *****    ******   **     **  **  ** ** **  ** **  **  ** ***   ** **  **  **     **    #
#    **  ** ****** **  **  ** ****** **       **  ***  ****** **  **  ** ** ****** **  **  **  ******  **  **  ** ******    #
#    **  ** ****** **  **  ** ****** **       **   *** ****** **  **  ** **  ** ** **  **  **   ****   **  **  ** ******    #
#															    															#
#															    															#
#															    															#
#    2010 - 2011 © HomePremiumCMS made by HomePemium as PremiumEye & Security by HomePremium and Merijnz		    		#
#															    															#
#    Powered by PhoenixPHP 3.7.1 (build 138000)										    									#
#															    															#
#															    															#
#															    															#
*###########################################################################################################################*
*/

echo $core->EscapeString($core->HeaderStyleJsForum());
?>

<style type="text/css">
#user_avatar {
	height: 65px;
	width: 64px;
	float: left;
	margin-top: -16px;

}
.avatar_placement {
	background: url(http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $core->EscapeString($users->UserInfo($username, 'look')); ?>&action=wav&gesture=sml);
}
</style>

<?php if($core->EscapeString($users->UserInfo($username, 'header_info')) == "0"){ ?>

<div id="top">

	<div id="topbar">

		<img src="../Public/Styles/Default/Images/logo_mini.png" style="float:left; padding-left:5px; padding-top: 12px;"> 

		<p id="text">

			&nbsp;&nbsp;<?php echo $lang['logged_in_as']; ?>, <?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>

			<div id="user_avatar" class="avatar_placement"></div>

		</p> 

		<div id="right">
        
			<table width="350" border="0">
            
				<tbody>
                
                	<tr>
                    
						<td>
                        
                        	<img src="../Public/Styles/Default/Images/icons/tab_icon_star.gif">
                            
                        </td>
                        
						<td>
                        
                        	<span id="users" class="OnlineCount">	

								<?php
								$userq_tellup = mysql_query("SELECT * FROM users WHERE online = '1' ORDER BY id ASC");
								$user_tellup = mysql_num_rows($userq_tellup);
								?>

								<?php if($user_tellup == 0){ ?><?php echo $lang['users_online_none']; ?>
								<?php }elseif($user_tellup == 1){ ?><?php echo $lang['users_online_1']; ?>
								<?php }elseif($user_tellup > 1){ ?><?php echo $lang['users_online_more']; ?><?php } ?>
							
                            </span>
                            
						</td>
                        
						<td>
                        
                        	<img src="../Public/Styles/Default/Images/icons/tab_icon_star.gif">
                            
                        </td>
                        
						<td>
                        
                        	<a href="vip.php" target="_new"><?php echo $lang['buy_vip']; ?></a>
                        
                        </td>
                        
						<td></td>
                        
						<td></td>
                        
                    </tr>

				</tbody>
                
            </table>
            
			<div style="clear:both;"></div>
            
		</div>
        
	</div>
    
</div>

<?php } ?>

<div id="header" style="margin-top: <?php if($core->EscapeString($users->UserInfo($username, 'header_info')) == "0"){ ?>52<?php }else{ ?>0<?php } ?>px;">

	<div style="width:960px; margin: auto; padding-left: 20px;" class="top">

<a href="./">
	<img style="float: left; margin-top: 5px; margin-left: 10px;" src="../Public/Styles/<?php echo $currentstyle ?>/Images/logo.gif" />
</a>

<div style="float: right; margin-top: 15px; margin-right: 69px; width: 122px;">

	<?php if($core->EscapeString($users->UserInfo($username, 'header_info')) == "1"){?>
		<div class="rounded-container">
        
        	<div style="background-color: rgb(188, 224, 238); ">
            
        		<div style="margin-top: 0px; margin-right: 4px; margin-bottom: 0px; margin-left: 4px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(227, 242, 248); ">
                    
                    	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(244, 250, 252); ">
                        
                        	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(253, 254, 254); ">
                            
                            	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                                
                            </div>
                            
                        </div>
                        
                    </div>
                    
                </div>
                
                <div style="margin-top: 0px; margin-right: 2px; margin-bottom: 0px; margin-left: 2px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(227, 242, 248); ">
                    
                    	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); ">
                        
                        	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                            
                        </div>
                        
                    </div>
                    
                </div>
                
                <div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(238, 247, 251); ">
                    
                    	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                        
        			</div>
                    
            	</div>
                
            	<div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(227, 242, 248); ">
                
            		<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
        		</div>
                
        		<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
        			<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); ">
                    
            			<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                        
        			</div>
                    
    			</div>
                
    			<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(227, 242, 248); ">
                
    				<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
                </div>
                
                <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(244, 250, 252); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
               	</div>
                
                <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(253, 254, 254); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
                </div>
                
            </div>
            
			<div class="rounded-done" style="width: 122px; text-align: center; background-color:#FFFFFF; height: 40px; padding-top: 15px;">

					<div class="OnlineCount">
					
						<?php include("../system/online.php"); ?>
                        
                    </div> 

			</div>
            
			<div style="background-color: rgb(188, 224, 238); ">
            
            	<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(253, 254, 254); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
                </div>
                
                <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(244, 250, 252); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
               	</div>
                
                <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(227, 242, 248); ">
                
    				<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
                </div>
                
                <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
        			<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); ">
                    
            			<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                        
        			</div>
                    
    			</div>
                
                <div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(227, 242, 248); ">
                
            		<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                    
        		</div>
                
                <div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(238, 247, 251); ">
                    
                    	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                        
        			</div>
                    
            	</div>
                
                <div style="margin-top: 0px; margin-right: 2px; margin-bottom: 0px; margin-left: 2px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(227, 242, 248); ">
                    
                    	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); ">
                        
                        	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                            
                        </div>
                        
                    </div>
                    
                </div>
                
                <div style="margin-top: 0px; margin-right: 4px; margin-bottom: 0px; margin-left: 4px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(188, 224, 238); ">
                
                	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(227, 242, 248); ">
                    
                    	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(244, 250, 252); ">
                        
                        	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(253, 254, 254); ">
                            
                            	<div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(255, 255, 255); "></div>
                                
                            </div>
                            
                        </div>
                        
                    </div>
                    
                </div>
                
            </div>
        </div>
<?php } ?>
</div>
        
<?php
$hotel = $core->CmsSetting($core->EscapeString('hotel_open'));
?>

<div style="float: right; margin-right: 23px;">
                        
	<div id="header" style="height: 28px;background-color: transparent;width: 572px;background-image: url(../Public/Styles/Default/Images/header_menu.png);">
    
		<div id="subnavi" style="width: 572px;">
        
    		<div id="subnavi-user">
            
        		<ul>
                
            		<li id="myfriends" style="margin-left: -29px;"><a href="#"><span><?php echo $lang['header_top_menu_friends']; ?></span></a>
                    
            		<span class="r"></span>
                    
            		</li>
                    
            		<li id="mygroups"><a href="#"><span><?php echo $lang['header_top_menu_groups']; ?></span>
                    
            		</a><span class="r"></span></li>
                    
            		<li id="myrooms"><a href="#"><span><?php echo $lang['header_top_menu_rooms']; ?></span></a><span class="r"></span></li>
                    
        		</ul>
                
        		<li style="float:right;margin-top:6px;margin-right: 10px;"><a href="../system/logout.php" style="text-decoration: underline;cursor:pointer;margin:0;padding:0;color:black;"><?php echo $lang['log_out']; ?></a></li>
                
    		</div>
            
		</div>
        
		<script type="text/javascript">
		L10N.put("purchase.group.title", "Maak/koop een Groep");
		document.observe("dom:loaded", function() {
		    $("signout").observe("click", function() {
		        HabboClient.close();
		    });
		});

		HabboView.run();
		</script>

		<style type="text/css">
		.odd {
			background-color: #EFEFEF;
		}
		</style>

		<div class="the-qtab" id="the-qtab-myfriends" style=" <?php if($language == "en"){?>left: 11px;<?php }elseif($language == "nl"){?>left: 11px;<?php } ?>top: 25px; display: none; ">
        
			<div class="qtab-container-top">
            
				<div style="margin-left: 1px; <?php if($language == "en"){?>width: 103px;<?php }elseif($language == "nl"){?>width: 124px;<?php } ?> height: 1px; background-color: #fff"></div>
                
			</div>
            
			<div class="qtab-container-bottom">
            
				<div id="qtab-container-myfriends" class="qtab-container" style="max-height: 280px;">
                	
					<?php
            		$query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id ='".$core->EscapeString($users->UserInfo($username, 'id'))."'");
					
					$i = 0;	
					
					$color = 'odd';
					
					while($friends = mysql_fetch_array($query))
					
					{
						
						$getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' LIMIT 1");
						
						if(mysql_num_rows($getfriend) > 0)
						
						{
							$i++;
							
							if($i == 1)
							
							{
								
								echo '<div class="boxContent">Jou online vrienden.</div>';
								
							}
							
							$friend = mysql_fetch_array($getfriend);
							
							echo '<div class="RoomBox linkerhover" id="'.$color.'" style="text-align: left;"><a href="home.php?u='.$friend['username'].'">'.$friend['username'].'</a></div>';
							
							if($color == 'odd')
							
							$color='even';
							
							else
							
							$color='odd';
							
						}
						
					}
					
					if($i > 0)
					
					echo '<div style="border-top: 1px solid #B5B5AF;"></div><br><br>';
					
					if($i == 0)
					
					echo '<div class="boxContent">Er zijn geen vrienden online.</div>
					
						  <div style="border-top: 1px solid #B5B5AF;"></div>';
					?>
			
					<?php
           		 	$query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id ='".$core->EscapeString($users->UserInfo($username, 'id'))."'");
					
					$i = 0;	
					
					$color = 'odd';
					
					while($friends = mysql_fetch_array($query))
					
					{
						
						$getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '0' LIMIT 1");
						
						if(mysql_num_rows($getfriend) > 0)
						
						{
							
							$i++;
							
							if($i == 1)
							
							{
								
								echo '<div class="boxContent">Jou offline vrienden.</div>';
								
							}
							
							$friend = mysql_fetch_array($getfriend);
							
							echo '<div class="RoomBox linkerhover" id="'.$color.'" style="text-align: left;"><a href="home.php?u='.$friend['username'].'">'.$friend['username'].'</a></div>';
							
							if($color == 'odd')
							
							$color='even';
							
							else
							
							$color='odd';
							
						}
						
					}
					
					if($i > 0)
					
					echo '<div style="border-top: 1px solid #B5B5AF;"></div>';
					
					if($i == 0)
					
					echo '<div class="boxContent">Je hebt nog geen vrienden.</div>
					
				  <div style="border-top: 1px solid #B5B5AF;"></div>';
					?>
                    
				</div>
                
			</div>
            
		</div>
        

		<div class="the-qtab" id="the-qtab-mygroups" style=" <?php if($language == "en"){?>left: 116px;<?php }elseif($language == "nl"){?>left: 137px;<?php } ?> top: 25px; display: none; ">
        
			<div class="qtab-container-top">
            
				<div style="margin-left: 1px; <?php if($language == "en"){?>width: 102px;<?php }elseif($language == "nl"){?>width: 120px;<?php } ?> height: 1px; background-color: #fff"></div>
                
			</div>
            
			<div class="qtab-container-bottom">
            
				<div id="qtab-container-mygroups" class="qtab-container">
                
					<div class="boxContent">
                    
						deze functie is tijdelijk uitgeschakeld.
                        
					</div>
                    
				</div>
                
			</div>
            
		</div>
        

		<div class="the-qtab" id="the-qtab-myrooms" style=" <?php if($language == "en"){?>left: 220px;<?php }elseif($language == "nl"){?>left: 259px;<?php } ?> top: 25px; display: none; ">
        
			<div class="qtab-container-top">
            
				<div style="margin-left: 1px; <?php if($language == "en"){?>width: 98px;<?php }elseif($language == "nl"){?>width: 115px;<?php } ?> height: 1px; background-color: #fff"></div>
                
			</div>
            
			<div class="qtab-container-bottom">
            
				<div id="qtab-container-myrooms" class="qtab-container">
                
					<style type="text/css">
					.RoomBox.linkerhover:hover{
						text-decoration: underline;
				cursor: pointer;
					}
			
					.even {
						border-top-width: 0;
						border-bottom-width: 0;
					}
			
					.odd {
						border-top-width: 0;
						border-bottom-width: 0;
					}
					</style>

					<div style="max-height:280px;overflow:scroll;overflow-y:scroll;overflow-x:hidden;">
                    
						<table width="300px">
                        
							<?php
							$userrooms = mysql_query("SELECT * FROM rooms WHERE owner = '".$username."'");
							
							$color = 'odd';
							
							if(mysql_num_rows($userrooms) == 0)
							
							{
								
								echo '<div class="RoomBox" id="even"><b>'.$lang['no_rooms'].'</b></div>';
								
							}
							
							while($userroom = mysql_fetch_array($userrooms))
							
							{
							?>
					
							<div class="RoomBox linkerhover" id="<?php echo $color; ?>" style="text-align: left;">
                            
								<?php echo $userroom['caption']; ?>
                                
							</div>
                            
							<?php
							if($color == 'odd')
							
							$color='even';
							
							else
							
							$color='odd';
							
							}
							?>

							<p class="create-room">
                            
								<a href="../client" target="ClientWndw" onclick="window.open('../client','ClientWndw','width=980,height=597');return false;" style="color: #FC6204; text-decoration: underline;">
                                
									Maak een nieuwe kamer
                                    
								</a>
                                
							</p>
                            
						</table>
                        
					</div>
                    
					</div>
                    
				</div>
                
			</div>
            
		</div>
        
        <br />
        
       	<?php if($hotel == 'open'){ ?>
        
        	<a href="/client" style="margin-top: -9px;" class="new-button green-button" target="ClientWndw" onclick="window.open('client/','ClientWndw','width=980,height=597');return false;"><b><span></span><?php echo $lang['go_to_hotel']; ?></b><i></i></a>
        
        <?php }else{ ?>
        
        	<a style="margin-top: -9px;cursor:default;" class="new-button dark-button"><b><span></span><?php echo $lang['go_to_hotel']; ?></b><i></i></a>
        
		<?php } ?>
        
    </div>

		<div style="float: left;" class="navBar">
        
			<li class="normal" ref="Home" onClick="location.href='../me.php'">
            
				<a href="../me.php">
                
					<?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>&nbsp; (<?php if($core->EscapeString($users->UserInfo($username, 'vip')) == 1){ echo '<img style="margin-bottom: -3px;" src="../Public/Styles/Default/Images/username_VIP.png" />';}else{ echo '<img style="margin-bottom: -3px;" src="../Public/Styles/Default/Images/username_ID.png" />';}?>)
                    
				</a>
                
				<span></span>
                
			</li>
            
			<li class="selected" ref="Forum">
            
				<strong>
                
					<?php echo $lang['nav_forum']; ?>
                    
				</strong>
                
				<span></span>
                
			</li>
            
			<li class="normal" ref="Community" onClick="location.href='../community.php'">
            
					<a href="../community.php">
                    
						<?php echo $lang['nav_community']; ?>
                        
					</a>
                    
					<span></span>
                    
			</li>
            
			<li class="normal" ref="Credits" onClick="location.href='../credits.php'">
            
				<a href="../credits.php">
                
					Credits
                    
				</a>
                
				<span></span>
                
			</li>
            
			<?php if($core->EscapeString($users->UserPermission('hk_login', $core->EscapeString($_SESSION['username'])))) {?>
            
				<li class="green" ref="Housekeeping">
                
					<a href="../manager" target="_new">
                    
						<?php echo $lang['nav_housekeeping']."" ?>
                        

					</a>
                    
					<span></span>
                    
				</li>	
                
			<?php }else{ echo ''; }?>
            
		</div>

<div id="stream_header_button" onclick="openDiv(&#39;stream_container&#39;).style.display = &#39;none&#39;;" style="float: right;<?php if($core->EscapeString($users->UserInfo($username, 'header_info')) == "0") { ?>margin-right: 213px;<?php }else{ ?>margin-right: 23px;<?php } ?> cursor: pointer;"> </div>
        
	</div>
    
</div>

<div id="stream_container" style="display: none; left: 10px; top:<?php if($core->EscapeString($users->UserInfo($username, 'header_info')) == "0"){ ?>166<?php }else{?>114<?php } ?>px; position:fixed;height: auto; z-index: 999;">

<div id="stream_top" onMouseDown="dragStart(event, 'stream_container')">
<a onClick="sluitDiv('stream_container')"><div id="stream_kruisje"></div></a>
</div>

<div id="stream_middle">

<div id="stream_input_container">

<script type="text/javascript">//<![CDATA[ 

 function blah(form_obj)
{
    if (form_obj.bericht.value != 'bericht' && form_obj.bericht.value != '')
        form_obj.submitBut.disabled = false;
    else
        form_obj.submitBut.disabled = true;
} 
//]]>  

</script>

<form name="form" method="post" target="_parent" action="../functions/post_stream.php">
    
	<input type="hidden" name="poster" value="<?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>" />
    
    <input type="hidden" name="poster_look" value="<?php echo $core->EscapeString($users->UserInfo($username, 'look')); ?>" />
    
    <input type="hidden" name="www" value="http://<?php echo $_SERVER['SERVER_NAME']; $_?>" />  
    
    <input type="text" name="bericht" id="input_stream" style="height: 20px; width: 165px; float: left;" maxlength="140" value="" placeholder="Zeg het maar.. ?" onfocus="if (this.value == &#39;bericht&#39;) this.value = &#39;&#39;;" onkeyup="blah(document.form);">
    
    <input type="submit" name="submitBut" id="stream_submit_button" disabled="true" value="">
    
    </form>
    
</div>

<div id="stream_middle_tekst">

	<div class="stream" id="stream_middle_container" style="max-height:500px; overflow:auto;overflow-x:hidden;">

<table width="100%">
        
<style type="text/css">
#stream_avatar {
height: 65px;
width: 64px;
float: left;
margin-top: -16px;
margin-left: -15px;
}
</style>
        
        <?php
		$stream = mysql_query("SELECT * FROM stream ORDER BY posted_on DESC LIMIT 50");
		$color = 'stream_odd';
		while($berichten = mysql_fetch_array($stream))
		{
		?>
        <tr>
        <td>
        <div class="<?php echo $color; ?>">
        	<div id="stream_avatar" style="background-image: url(http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $berichten['poster_look']; ?>);"></div>
            
            <div style="width: 160px; float: right; ">
        	<a href="home.php?u=<?php echo $berichten['poster']; ?>" style="font-weight: bold; text-decoration: underline;"><?php echo $berichten['poster']; ?></a><br>
            <?php echo $berichten['bericht']; ?>
            <div id="stream_posted"><?php echo @date("d-m-Y",$berichten['posted_on']); ?></div>
            </div>
		</div>
        </td>
        </tr>
        <?php
		if($color == 'stream_odd')
			$color='stream_even';
			else
			$color='stream_odd';
		}
		?>
        
        </table>
    </div>
    
    <div style="margin-top: 5px;">
    	<img align="left" style="padding-right: 3px;" src="../Public/Styles/Default/Images/stream/vraagteken_icon.png">
    		<div style="padding-top: 2px;">
            	<font color="#FFFFFF" size="2" style="text-decoration:underline; cursor: pointer;">
                	<a href="#" target="_self" onclick="openDiv(&#39;stream_info_container&#39;).style.display = &#39;none&#39;;" style="color: white;">Stream info</a>
                </font>
            </div>
            
         
    </div>

</div>

</div>
            
    
			
			<div id="stream_bottom"></div>
                   
		</div>

<div id="stream_info_container" style="display: none; left: 270px; top:<?php if($users->UserInfo($username, 'header_info') == "0"){ ?>166<?php }else{?>114<?php } ?>px; position:fixed;z-index: 100;">

<div id="stream_top" onMouseDown="dragStart(event, 'stream_info_container')" style="z-index: 100;">
<a href="#" onClick="sluitDiv('stream_info_container')"><div onClick="sluitDiv('stream_info_container')" style="z-index: 100;" id="stream_kruisje"></div></a>
</div>

<div id="stream_middle" style="z-index: 100;">

<div id="info_stream_input_container" style="z-index: 100;">
<div style="cursor: pointer;z-index: 100;" onClick="sluitDiv('stream_info_container')">&laquo; Terug</div>
</div>

<div id="info_stream_middle_tekst" style="z-index: 100;">
<div style="max-height:525px;overflow:scroll;overflow-y:scroll;overflow-x:hidden;" style="z-index: 100;">
	<center><img src="../Public/Styles/Default/Images/stream/stream_info_image.png"></center><br>
		<b>Wat is Zengo Stream?</b><br>
        Zengo stream is de vervanger hier van het bekende twitter! Hier kun je dus met elkaar chatten. Het is bijna exact het zelfde als in het hotel, maar hier is het toch wat anders. Zo kun je up-to-date zijn van je vrienden en de staff leden plaatsen hier ook informatie over het hotel, aan updates bijvoorbeeld.<br>
        <br>
        <b>Wie kan mijn meldingen zien?</b><br>
        Gewoon iedereen! Je hebt toch voor niemand geheimen? Laat dat dan ook zien! Iedereen is vrij om met elkaar te praten via deze stream. <br>
        <br>
        <b>Welke info kunnen andere mensen zien?</b><br>
        Het enige wat zij kunnen zien is, jou avatar (jou poppetje), je zengonaam, wanneer je het bericht gepost hebt en wat je gepost hebt. Er is ook een mogelijkheid om naar zijn/haar profiel te gaan.<br>
        <br>
        <b>Ik heb nog meer vragen!</b><br>
        Die kun je stellen aan de staff leden. Zij kunnen jou alles vertellen over de Zengo Stream :).

</div></div>
			</div>
			
			<div id="stream_bottom" style="z-index: 100;"></div>
		</div>

<?php if(isset($_GET["open"]) && $_GET["open"] == "stream"){?>

<div id="stream_container2" style="left: 10px; top:<?php if($core->EscapeString($users->UserInfo($username, 'header_info')) == "0"){ ?>166<?php }else{?>114<?php } ?>px; position:fixed;height: auto;overlow: hidden;z-index: 999;">

<div id="stream_top" onMouseDown="dragStart(event, 'stream_container2')">
<a href="me.php" onClick="sluitDiv('stream_container2')"><div id="stream_kruisje"></div></a>
</div>

<div id="stream_middle">

<div id="stream_input_container">

<script type="text/javascript">//<![CDATA[ 

 function blah(form_obj)
{
    if (form_obj.bericht.value != 'bericht' && form_obj.bericht.value != '')
        form_obj.submitBut.disabled = false;
    else
        form_obj.submitBut.disabled = true;
} 
//]]>  

</script>

<form name="form" method="post" target="_parent" action="../functions/post_stream.php">
    
	<input type="hidden" name="poster" value="<?php echo $core->EscapeString($users->UserInfo($username, 'username')); ?>" />
    
    <input type="hidden" name="poster_look" value="<?php echo $core->EscapeString($users->UserInfo($username, 'look')); ?>" />
    
    <input type="hidden" name="www" value="http://<?php echo $_SERVER['SERVER_NAME']; $_?>" />  
    
    <input type="text" name="bericht" id="input_stream" style="height: 20px; width: 165px; float: left;" maxlength="140" value="" placeholder="Zeg het maar.. ?" onfocus="if (this.value == &#39;bericht&#39;) this.value = &#39;&#39;;" onkeyup="blah(document.form);">
    
    <input type="submit" name="submitBut" id="stream_submit_button" disabled="true" value="">
    
    </form>
    
</div>

<div id="stream_middle_tekst">

	<div class="stream" id="stream_middle_container" style="max-height:500px; overflow:auto;overflow-x:hidden;">
<table width="100%">
        
<style type="text/css">
#stream_avatar {
height: 65px;
width: 64px;
float: left;
margin-top: -16px;
margin-left: -15px;
}
</style>
        
        <?php
		$stream = mysql_query("SELECT * FROM stream ORDER BY posted_on DESC LIMIT 50");
		$color = 'stream_odd';
		while($berichten = mysql_fetch_array($stream))
		{
		?>
        <tr>
        <td>
        <div class="<?php echo $color; ?>">
        	<div id="stream_avatar" style="background-image: url(http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $berichten['poster_look']; ?>);"></div>
            
            <div style="width: 160px; float: right; ">
        	<a href="home.php?u=<?php echo $berichten['poster']; ?>" style="font-weight: bold; text-decoration: underline;"><?php echo $berichten['poster']; ?></a><br>
            <?php echo $berichten['bericht']; ?>
            <div id="stream_posted"><?php echo @date("d-m-Y",$berichten['posted_on']); ?></div>
            </div>
		</div>
        </td>
        </tr>
        <?php
		if($color == 'stream_odd')
			$color='stream_even';
			else
			$color='stream_odd';
		}
		?>
        
        </table>

    </div>
    
    <div style="margin-top: 5px;">
    	<img align="left" style="padding-right: 3px;" src="../Public/Styles/Default/Images/stream/vraagteken_icon.png">
    		<div style="padding-top: 2px;">
            	<font color="#FFFFFF" size="2" style="text-decoration:underline; cursor: pointer;">
                	<a href="#" target="_self" onclick="openDiv(&#39;stream_info_container&#39;).style.display = &#39;none&#39;;" style="color: white;">Stream info</a>
                </font>
            </div>
            
         
    </div>

</div>

</div>
            
    
			
			<div id="stream_bottom"></div>
                   
		</div>
    
<?php }?>